import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { LogModule } from '../log/log.module';

@Module({
  // 引入LogModule
  imports: [LogModule],
  controllers: [UserController],
  providers: [UserService],
})
export class UserModule {
  onModuleInit() {
    console.log('OnModuleInit2');
  }
  onApplicationBootstrap() {
    console.log('onApplicationBootstrap2');
  }
  onModuleDestroy() {
    console.log('onModuleDestroy2');
  }
  beforeApplicationShutdown() {
    console.log('beforeApplicationShutdown2');
  }
}
